import Vue from 'vue'
import VueRouter from 'vue-router'
import main from '../views/main.vue'
import task from '../views/task.vue'  // 导入 task 页面组件

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'main',
    component: main
  },
  {
    path: '/task',  // 新增的路由
    name: 'task',
    component: task  // 指定新的路由页面组件
  }
]

const router = new VueRouter({
  routes
})

export default router
